body {
    background-color: #f2f2f2;
}

/* --- */

#html-title {
    min-width: 450px;
    max-width: 500px;
}

.title-container {
    padding: 8px 16px;
    display: flex;
}

.title-container h1 {
    font-size: 2em;
    margin: 0;
    color: #333;
}

.title-container .title {
    flex-grow: 1;
}

.title-container .subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: 4px;
}

.title-container .year-selector-container {
    font-size: 1em;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding-bottom: 10px;
}

/* --- */

.highcharts-dashboards-component-kpi-value {
    margin-bottom: 18px;
}

.highcharts-dashboards-component-kpi-value .percentage {
    font-size: 0.9em;
}

.highcharts-dashboards-component-kpi-value .value {
    font-size: 0.5em;
}

.highcharts-dashboards-component-kpi {
    cursor: pointer;
}

.highcharts-dashboards-component-kpi:has(.inactive) {
    border-color: #ccc !important;
    border-style: dashed !important;
    opacity: 0.5;
}

.highcharts-dashboards-component-kpi:hover .highcharts-dashboards-component-title {
    text-decoration: underline;
}

.highcharts-dashboards-component-kpi:has(.inactive) .highcharts-dashboards-component-title {
    text-decoration: line-through;
}

.highcharts-dashboards-component-kpi:hover {
    opacity: 1;
}

/* --- */

#generation-chart {
    height: 440px;
}

/* --- */

#kpi-hydro .highcharts-dashboards-component-kpi {
    border: 5px solid #1E90FF;
}

#kpi-solar .highcharts-dashboards-component-kpi {
    border: 5px solid #FFD700;
}

#kpi-wind .highcharts-dashboards-component-kpi {
    border: 5px solid #32CD32;
}

#kpi-biomass .highcharts-dashboards-component-kpi {
    border: 5px solid #8B4513;
}

#kpi-gas .highcharts-dashboards-component-kpi {
    border: 5px solid #FF4500;
}

#kpi-coal .highcharts-dashboards-component-kpi {
    border: 5px solid #333;
}

#kpi-oil .highcharts-dashboards-component-kpi {
    border: 5px solid #8B0000;
}

#kpi-other .highcharts-dashboards-component-kpi {
    border: 5px solid #808080;
}

/* --- */

#prices-kpi-block {
    max-width: 260px;
}

#prices-kpi-block .highcharts-dashboards-component-kpi {
    cursor: auto;
    min-height: 200px;
}

#prices-kpi-block .highcharts-dashboards-component-kpi:hover .highcharts-dashboards-component-title {
    text-decoration: none;
}

#prices-kpi-block .value {
    font-size: 1.2em;
    font-weight: bold;
}

#kpi-net .value {
    color: #0d0;
}

#kpi-net .negative .value {
    color: #f00;
}

/* --- */

footer {
    text-align: right;
    margin: 0 20px 20px;
}

/* --- */

@media screen and (width < 1235px) {
    #kpi-hydro,
    #kpi-solar,
    #kpi-wind,
    #kpi-biomass,
    #kpi-gas,
    #kpi-coal,
    #kpi-oil,
    #kpi-other {
        flex: 0 0 25%;
    }

    #html-title {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

@media screen and (width < 729px) {
    #prices-chart {
        flex: 0 0 100%;
    }

    #prices-kpi-block {
        max-width: 100%;
    }

    #prices-kpi-block .highcharts-dashboards-component-kpi {
        min-height: 120px;
    }
}